<?php
/**
 * 运营商1
 * User: 16
 * Date: 2018/9/18
 * Time: 10:51
 */
namespace template;

class SmsCompanyOne extends Sms{

    public function initialize($config=[]){
        if(!isset($config['app_id'])) throw new \Exception("not found app_id");
        $this->config = $config;
    }

    public function sendSms($mobile=0){
        echo "运营商使用配置".$this->config['app_id']."给".$mobile.'发送短信';
    }
}